/**
 * Generate time : 2011-06-13 14:45:02
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.ca.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * VZMCA12
 * 
 */
public class VZMCA12 extends DaoEPBase {

	private String fdKeyId = " ";
	private String fdRiskCode = " ";
	private String fdRiskDate = " ";
	private String fdRiskSource = " ";
	private String fdDepartmentId = " ";
	private String fdRiskPlace = " ";
	private String fdDeadline = " ";
	private String fdRiskClassify = " ";
	private String fdRiskLevel = " ";
	private String fdDepartmentName = " ";
	private String fdDepartmentLevel = " ";
	private String fdParentDepartmentId = " ";

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRiskCode");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRiskDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRiskSource");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRiskPlace");
		eiColumn.setFieldLength(200);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDeadline");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRiskClassify");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRiskLevel");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepartmentName");
		eiColumn.setFieldLength(300);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepartmentLevel");
		eiColumn.setFieldLength(300);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdParentDepartmentId");
		eiColumn.setFieldLength(300);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);
	}

	/**
	 * the constructor
	 */
	public VZMCA12() {
		initMetaData();
	}

	/**
	 * get the fdKeyId
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdRiskCode
	 * 
	 * @return the fdRiskCode
	 */
	public String getFdRiskCode() {
		return this.fdRiskCode;
	}

	/**
	 * set the fdRiskCode
	 */
	public void setFdRiskCode(String fdRiskCode) {
		this.fdRiskCode = fdRiskCode;
	}

	/**
	 * get the fdRiskDate
	 * 
	 * @return the fdRiskDate
	 */
	public String getFdRiskDate() {
		return this.fdRiskDate;
	}

	/**
	 * set the fdRiskDate
	 */
	public void setFdRiskDate(String fdRiskDate) {
		this.fdRiskDate = fdRiskDate;
	}

	/**
	 * get the fdRiskSource
	 * 
	 * @return the fdRiskSource
	 */
	public String getFdRiskSource() {
		return this.fdRiskSource;
	}

	/**
	 * set the fdRiskSource
	 */
	public void setFdRiskSource(String fdRiskSource) {
		this.fdRiskSource = fdRiskSource;
	}

	/**
	 * get the fdDepartmentId
	 * 
	 * @return the fdDepartmentId
	 */
	public String getfdDepartmentId() {
		return this.fdDepartmentId;
	}

	/**
	 * set the fdDepartmentId
	 */
	public void setfdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}

	/**
	 * get the fdRiskPlace
	 * 
	 * @return the fdRiskPlace
	 */
	public String getFdRiskPlace() {
		return this.fdRiskPlace;
	}

	/**
	 * set the fdRiskPlace
	 */
	public void setFdRiskPlace(String fdRiskPlace) {
		this.fdRiskPlace = fdRiskPlace;
	}

	/**
	 * get the fdDeadline
	 * 
	 * @return the fdDeadline
	 */
	public String getFdDeadline() {
		return this.fdDeadline;
	}

	/**
	 * set the fdDeadline
	 */
	public void setFdDeadline(String fdDeadline) {
		this.fdDeadline = fdDeadline;
	}

	/**
	 * get the fdRiskClassify
	 * 
	 * @return the fdRiskClassify
	 */
	public String getFdRiskClassify() {
		return this.fdRiskClassify;
	}

	/**
	 * set the fdRiskClassify
	 */
	public void setFdRiskClassify(String fdRiskClassify) {
		this.fdRiskClassify = fdRiskClassify;
	}

	/**
	 * get the fdRiskLevel
	 * 
	 * @return the fdRiskLevel
	 */
	public String getFdRiskLevel() {
		return this.fdRiskLevel;
	}

	/**
	 * set the fdRiskLevel
	 */
	public void setFdRiskLevel(String fdRiskLevel) {
		this.fdRiskLevel = fdRiskLevel;
	}

	/**
	 * set the fdDepartmentName
	 */
	public void setFdDepartmentName(String fdDepartmentName) {
		this.fdDepartmentName = fdDepartmentName;
	}

	/**
	 * get the fdDepartmentLevel
	 * 
	 * @return the fdDepartmentLevel
	 */
	public String getFdWDepartmentName() {
		return this.fdDepartmentName;
	}

	/**
	 * set the fdDepartmentLevel
	 */
	public void setFdDepartmentLevel(String fdDepartmentLevel) {
		this.fdDepartmentLevel = fdDepartmentLevel;
	}

	/**
	 * get the fdDepartmentLevel
	 * 
	 * @return the fdDepartmentLevel
	 */
	public String getFdDepartmentLevel() {
		return this.fdDepartmentLevel;
	}

	/**
	 * set the fdParentDepartmentId
	 */
	public void setFdParentDepartmentId(String fdParentDepartmentId) {
		this.fdParentDepartmentId = fdParentDepartmentId;
	}

	/**
	 * get the fdParentDepartmentId
	 * 
	 * @return the fdParentDepartmentId
	 */
	public String getFdParentDepartmentId() {
		return this.fdParentDepartmentId;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdRiskCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskCode")), fdRiskCode));
		setFdRiskDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskDate")), fdRiskDate));
		setFdRiskSource(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskSource")), fdRiskSource));
		setfdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdRiskPlace(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskPlace")), fdRiskPlace));
		setFdDeadline(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDeadline")), fdDeadline));
		setFdRiskClassify(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskClassify")), fdRiskClassify));
		setFdRiskLevel(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskLevel")), fdRiskLevel));
		setFdDepartmentName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentName")), fdDepartmentName));
		setFdDepartmentLevel(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentLevel")), fdDepartmentLevel));
		setFdParentDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdParentDepartmentId")), fdParentDepartmentId));

	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdRiskCode", StringUtils.toString(fdRiskCode, eiMetadata.getMeta("fdRiskCode")));
		map.put("fdRiskDate", StringUtils.toString(fdRiskDate, eiMetadata.getMeta("fdRiskDate")));
		map.put("fdRiskSource", StringUtils.toString(fdRiskSource, eiMetadata.getMeta("fdRiskSource")));
		map.put("fdDepartmentId", StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));
		map.put("fdRiskPlace", StringUtils.toString(fdRiskPlace, eiMetadata.getMeta("fdRiskPlace")));
		map.put("fdDeadline", StringUtils.toString(fdDeadline, eiMetadata.getMeta("fdDeadline")));
		map.put("fdRiskClassify", StringUtils.toString(fdRiskClassify, eiMetadata.getMeta("fdRiskClassify")));
		map.put("fdRiskLevel", StringUtils.toString(fdRiskLevel, eiMetadata.getMeta("fdRiskLevel")));
		map.put("fdDepartmentName", StringUtils.toString(fdDepartmentName, eiMetadata.getMeta("fdDepartmentName")));
		map.put("fdDepartmentLevel", StringUtils.toString(fdDepartmentLevel, eiMetadata.getMeta("fdDepartmentLevel")));
		map.put("fdParentDepartmentId", StringUtils.toString(fdParentDepartmentId, eiMetadata.getMeta("fdParentDepartmentId")));

		return map;

	}
}